package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 义务教育阶段报名预测表
 *
 * @author zhiyuan
 * @since 2023-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_enroll_calculate")
@Schema(name = "EduStudentEnrollCalculate", title = "义务教育阶段报名预测表", description = "义务教育阶段报名预测表实体类")
public class EduStudentEnrollCalculate extends Model<EduStudentEnrollCalculate> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "enrollBeforeId", title = "主键")
    @TableId(value = "enroll_before_id", type = IdType.INPUT)
    private Long enrollBeforeId;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "studentEnrollPreId", title = "预采集id")
    @TableField(value = "student_enroll_pre_id")
    private String studentEnrollPreId;

    @Schema(name = "schoolId", title = "可报名学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "configTypeName", title = "招生计划类别")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Schema(name = "houseId", title = "房产id")
    @TableField(value = "house_id")
    private String houseId;

    @Schema(name = "houseAdreess", title = "房产地址")
    @TableField(value = "house_adreess")
    private String houseAdreess;

    @Schema(name = "householdId", title = "户籍id")
    @TableField(value = "household_id")
    private String householdId;

    @Schema(name = "householdAdress", title = "户籍地址")
    @TableField(value = "household_adress")
    private String householdAdress;

    @Schema(name = "privateAppointFlag", title = "是否民办直升班 0 否 1 是")
    @TableField(value = "private_appoint_flag")
    private String privateAppointFlag;

    @Schema(name = "privateAppointStudentId", title = "民办直升班名单id")
    @TableField(value = "private_appoint_student_id")
    private String privateAppointStudentId;

    @Schema(name = "appointFlag", title = "是否城区E类人员 0 否 1 是")
    @TableField(value = "appoint_flag")
    private String appointFlag;

    @Schema(name = "appointStudentId", title = "E类学籍名单id")
    @TableField(value = "appoint_student_id")
    private String appointStudentId;

    @Schema(name = "specialFlag", title = "特殊人员标识、针对学校录入的")
    @TableField(value = "special_flag")
    private String specialFlag;

    @Schema(name = "authStatus", title = "审核状态")
    @TableField(value = "auth_status")
    private String authStatus;

    @Schema(name = "authRemarks", title = "审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "authTime", title = "审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authUserId", title = "审核人")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.enrollBeforeId;
    }
}
